<div id="registrazione">
        <h1>Modulo di registrazione</h1>
        
  <form method="post" action="index.php" ajax="no">
  <fieldset><legend>Credenziali di accesso</legend>
	
	<div class="campo"><label for="username">Nome utente:</label>
	<input type="text" name="username" id="username"value="" /><div class="risposta"></div></div>
	<div class="campo"><label for="password">Password: </label><input type="password" name="password" id="password"  /><div class="risposta"></div></div>
	<div class="campo"><label for="conferma_password">Ripeti password: </label><input type="password" name="conferma_password" id="conferma_password" /><div class="risposta"></div></div>
	<div class="campo"><label for="nome">Nome:</label>
	<input type="text" name="nome" id="nome" value="{if isset($user)}{$user->first_name}{/if}"/>
	<div class="risposta"></div></div>
	<div class="campo"><label for="cognome">Cognome:</label>
	<input type="text" name="cognome" id="cognome" value="{if isset($user)}{$user->last_name}{/if}" />
	<div class="risposta"></div></div>
	<div class="campo"><label for="email">Email:</label>
	<input type="text" name="email" id="email" value="{if isset($user)}{$user->email}{/if}" />
	<div class="risposta"></div></div>
    <div class="campo"><label for="conferma_email">Conferma Email:</label>
    <input type="text" name="conferma_email" id="conferma_email" value="{if isset($user)}{$user->email}{/if}" />
    <div class="risposta"></div></div>
          <input type="hidden" name="c" value="CRegistrazione" />
          <input type="hidden" name="a" value="signin" />
	<div class="campo"><label>&nbsp;</label><input type="submit" id="submit_1" class="button" value="Registrati" /></div>
   
   </fieldset>		  
    </form>
<script type="text/javascript">

var registrazione = new Registrazione('#registrazione form');

$('input[type="submit"]','#registrazione form').button();

</script>
</div>
        